import React, { useState } from 'react'
import { Calendar, Dialog, Button } from 'antd-mobile'
const App = () => {
	const [visbile, setVisbile] = useState(false)
	return (
		<>
			<Calendar selectionMode="single" onChange={() => {
				setVisbile(true)
			}} />
			<Dialog visible={ visbile }
				title="签到成功"
				content={ <Button color='primary' onClick={ () => setVisbile(false) }>确定</Button> }
			></Dialog>
		</>
	)
}


export default App